package com.sf.fy.uav.common.response.order.task;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author ta136817
 */
@Data
public class DistributionOrderListRes {
    @ApiModelProperty("订单主键")
    private String id;

    @ApiModelProperty("订单编号")
    @Excel(name = "订单编号", width = 30)
    private String tcWaybillNo;

    @ApiModelProperty("货物类型id")
    private String goodsTypeId;

    private String takeoffConnId;

    private String landingConnId;

    private String takeoffName;

    private String landingName;

    @ApiModelProperty("订单类型字符串")
    @Excel(name = "产品类型", width = 30)
    private String orderTypeStr;

    @ApiModelProperty("货物类型名称")
    @Excel(name = "货物类型名称", width = 30)
    private String goodsTypeName;

    @ApiModelProperty("重量")
    @Excel(name = "重量", width = 30)
    private double goodsWeight;

    @ApiModelProperty("寄件人")
    @Excel(name = "寄件人", width = 30)
    private String senderName;

    @ApiModelProperty("寄件人手机号码")
    @Excel(name = "寄件人手机号码", width = 40)
    private String senderTel;

    @ApiModelProperty("寄件地址")
    private String senderAddr;

    @ApiModelProperty("寄件详细地址")
    private String sendAddressName;

    @ApiModelProperty("寄件门牌号")
    private String senderDoorplate;

    @ApiModelProperty("寄件完整地址")
    @Excel(name = "寄件地址", width = 60)
    private String senderFullAddress;

    @ApiModelProperty("收件人")
    @Excel(name = "收件人", width = 30)
    private String receiverName;

    @ApiModelProperty("收件人手机号码")
    @Excel(name = "收件人手机号码", width = 40)
    private String receiverTel;

    @ApiModelProperty("收件地址")
    private String receiverAddr;

    @ApiModelProperty("收件详细地址")
    private String receiveAddressName;

    @ApiModelProperty("收件门牌号")
    private String  receiverDoorplate;

    @ApiModelProperty("收件完整地址")
    @Excel(name = "收件地址", width = 60)
    private String  receiverFullAddress;


    @ApiModelProperty("订单金额")
    @Excel(name = "订单金额", width = 30)
    private BigDecimal pricePayable;

    @ApiModelProperty("实付金额")
    @Excel(name = "实付金额", width = 30)
    private BigDecimal pricePaid;

    @ApiModelProperty("下单用户id")
    private String userId;

    @ApiModelProperty("下单用户手机号码未脱敏")
    @Excel(name = "下单用户", width = 40)
    private String phoneNumber;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "创建时间", format = "yyyy-MM-dd HH:mm:ss", width = 30)
    private Date createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "更新时间", width = 30, format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @Excel(name = "第三方平台订单号", width = 30)
    @ApiModelProperty("第三方平台订单号")
    private String thirdPartyOrderNumber;

    @Excel(name = "订单备注", width = 30)
    @ApiModelProperty("订单备注")
    private String remark;

    @ApiModelProperty("记录向平台组下单时如果异常的异常信息")
    private String wrongMsg;

    @ApiModelProperty("状态")
    private Integer orderStatus;
    @Excel(name = "状态", width = 30)
    @ApiModelProperty("状态名称")
    private String statusName;

    @ApiModelProperty("平台编码")
    private Integer platformCode;

    @Excel(name = "订单来源", width = 30)
    @ApiModelProperty("平台编码对应的唯一中文名称")
    private String platformName;

    @ApiModelProperty("订单类型：0同城，1跨城")
    private Byte orderType;
}
